<%-- 
    Document   : CustAccountActivation
    Created on : Sep 28, 2011, 2:41:28 PM
    Author     : Belinda
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@page import="java.util.ArrayList, BusinessLogic.Constants" %>
<!DOCTYPE html>
<html>
    <!-- InstanceBegin template="../TransactWeb//Templates/FdSage.dwt" codeOutsideHTMLIsLocked="false" -->
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <!-- InstanceBeginEditable name="doctitle" -->
        <title>Customer Account Activation</title>
        <!-- InstanceEndEditable -->
        <script language="javascript" type="text/javascript" src="../TransactWeb/js/jquery-1.6.4.min.js"></script>
        <script type="text/javascript" src="../TransactWeb/js/fieldsetCollapse.js"></script>
        <script type="text/javascript" src="../TransactWeb/js/tcubmenu.js"></script>
        <script type="text/javascript" src="../TransactWeb/js/accordion.js"></script>
        <script type="text/javascript" src="../TransactWeb/js/scroller.js"></script>
        <link rel="stylesheet" type="text/css" href="../TransactWeb/css/tcubaccd.css" />
        <link rel="stylesheet" type="text/css" href="../TransactWeb/css/promotion.css" />
        <link rel="stylesheet" type="text/css" href="../TransactWeb/css/templatestyle.css" />
        <link rel="stylesheet" type="text/css" href="../TransactWeb/css/tcubeadmin.css" />
        <link rel="stylesheet" type="text/css" href="../TransactWeb/css/gridsys.css" />
        <link rel="stylesheet" type="text/css" href="../TransactWeb/css/reset1.css" />
        <link rel="stylesheet" type="text/css" href="../TransactWeb/css/cm.css" />
        <!-- InstanceBeginEditable name="head" -->
        <!-- InstanceEndEditable -->
        <link href="../TransactWeb/css/gridsys.css" rel="stylesheet" type="text/css" />
        <link href="../TransactWeb/css/templatestyle.css" rel="stylesheet" type="text/css" />
        <style>
            a {color:#000;}
        </style>
    </head>
    <body>
        <!-- InstanceBeginRepeat name="Header" --><!-- InstanceBeginRepeatEntry -->
        <div id="header_bg">
            <div class="container_12" id="lang_bar">
                <div class="grid_6 push_5" id="lang">
                    <table width="480" border="0">
                        <tr>
                            <td width="30"><a href="CustAccountRegistration">Register</a></td>
                            <td width="50">Contact Us</td>
                            <td width="40">SiteMap</td>
                            <td width="200"> Language  :  English | Bahasa Indonesia | 简体中文 </td>

                        </tr>
                    </table>
                </div>
            </div>
            <div class="container_12"> 
                <div class="grid_3 push_3 header_menu">About.</div>
                <div class="grid_2 push_2 header_menu">Browse.</div>
                <div class="grid_2 push_2 header_menu" id="plan">Plan.</div>
                <div class="grid_3 push_2 header_menu">Socialize.</div>
                <div class="clear"></div>

                <div class="grid_1 push_3" id="header_sbabout">FoodSage<br />Singapore</div>
                <div class="grid_2 push_3" id="header_sbbrowse">Restaurant List <br />
                    Places of Attraction</div>
                <div class="grid_2 push_2" id="header_sbplan">Your Itinerary</div>
                <div class="grid_2 push_1" id="header_sbsocial">mySage &nbsp; &nbsp;Classified<br /> Mobile Application</div>
                <div class="clear"></div>

            </div>

        </div>
        <div id="login">
            <div class="container_12">
                <div class="grid_8 push_4" id="loginfields"><form action="indexloggedin.html" method="post">Username : <input name="username" type="text" /> &nbsp;&nbsp; Password : <input name="pass" type="text" /><input name="login" type="submit" value="Login" /></form></div>
            </div>
        </div> 

        <!-- InstanceEndRepeatEntry --><!-- InstanceEndRepeat -->
        <!-- InstanceBeginEditable name="Content" -->
        <div class="container_12">
            <div class="grid_8">
                <div class="grid_8 push_2" style="margin-left:90px;">
                    
                    <%
                        ArrayList data = (ArrayList) request.getAttribute("data");
                        int result = ((Integer) data.get(0)).intValue();
                        if (result == Constants.STATUS_SUCCESSFUL) {
                    %>
                    Thank You For Registering With Us! <br />
                    Your account was successfully activated.<br/>
                    If you're not redirected to Homepage in 4s, please click <a href="./index">here</a>.
                    <% } else {
                    %> 
                    You haven't registered for an account at FoodSage.<br/>
                    Please click <a href="./CustAccountRegistration">here</a> if you wish to register for an account.<br/>
                    Otherwise, if you're not redirected to Homepage in 6s, please click <a href="./index">here</a>.
                    <%            }
                    %>
                </div>
            </div>
        </div>
        <!-- InstanceEndEditable -->
        <!-- InstanceBeginRepeat name="Footer" --><!-- InstanceBeginRepeatEntry -->
        <div id="footer_bar">
            <div class="container_12">
                <div class="grid_12" id="footer">&copy; &nbsp;Copyright FoodSage</div>
            </div>
        </div>
        <!-- InstanceEndRepeatEntry --><!-- InstanceEndRepeat -->
    </body>
    <!-- InstanceEnd -->
</html>